﻿using System;
using System.Text.RegularExpressions;

namespace CodeContrib
{
	public static class GuidExtensions
	{
		public static bool IsEmpty(this Guid guid)
		{
			return (guid == Guid.Empty);
		}

		public static bool IsGuid(this string guid)
		{
			return Regex.IsMatch(guid, string.Format("^{0}$", RegularExpressions.Guid));
		}
	}
}